﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Manul.Genetics.Compiler
{
    public static class GenomCompilationErrorText
    {
        private const string EpistasisLoop = "The root character is in epistasis of {0} character. {1} character willn't be added.";
        private const string WrongCode = "The code '{0}' can't be parsed.";
        private const string LocusOverload = "Locus '{0}' allows only {1} items.";

        public static string GetErrorText(GenomCompilationErrorType errorType)
        {
            switch (errorType)
            {
                case GenomCompilationErrorType.EpistasisLoop:
                    return EpistasisLoop;
                case GenomCompilationErrorType.WrongCode:
                    return WrongCode;
                case GenomCompilationErrorType.LocusOverload:
                    return LocusOverload;
                default:
                    return String.Empty;
            }
        }
    }
    public enum GenomCompilationErrorType
    {
        None,
        EpistasisLoop,
        WrongCode,
        LocusOverload
    }
}
